{% extends "base.html" %}{% load base_tags %}
{% block title %}Passwort ändern{% endblock %}
{% block content %}
	{% hintblock %}
		Bitte gebe Dein altes Passwort ein und dann das neue zweimal, um Tippfehler auszuschliessen.
	{% endhintblock %}
	<form action="{% url account_password_change %}" method="post">
	{% csrf_token %}
	{% if form.errors %}
		{% errorblock %}
			{% for field in form %}
				{% if field.errors %}
					{{ field.label }}:
					{% for error in field.errors %}{{ error }}<br />{% endfor %}
				{% endif %}
			{% endfor %}
		{% enderrorblock %}
	{% endif %}
	<table>
	    <tr>
	        <td><label for="id_old_password">Altes Passwort:</label></td>
	        <td>{{ form.old_password }}</td>
	    </tr>
	    <tr>
	        <td><label for="id_new_password1">Neues Passwort:</label></td>
	        <td>{{ form.new_password1 }}</td>
	    </tr>
	    <tr>
	        <td><label for="id_new_password2">Neues Passwort bestätigen:</label></td>
	        <td>{{ form.new_password2 }}</td>
	    </tr>
	    <tr>
	        <td>&nbsp;</td>
	        <td><input type="submit" value="Mein Passwort ändern" /></td>
	    </tr>
	</table>    
	</form>
{% endblock %}
